public int SingleNumber(int[] nums)
{
int sNumber = nums[0];
if (nums.Length > 1)
{
for (int i = 0; i <= nums.Length - 2; i++)
{
sNumber = sNumber ^ nums[i + 1];
}
}
return sNumber;
}